package com.gla.dao;

import com.gla.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    public List<User> getAllUser(@Param("account") String account, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getUserCounts(@Param("account") String account);
    public int addUser(User user);
    public int deleteUser(int id);
    public User getUpdateUser(int id);
    public int editUser(User user);
    public int updateState(Integer id, Boolean is_vip);


    /**
     * 获取用户简单信息(不包括密码、头像)
     * @param id
     * @return
     */
    public User getUserSimpleInfoById(Integer id);

}
